const fs = require("fs");
const path = require("path");
const entity = require("./entity");

let outputPath = path.join(__dirname,'../output');

let cnPath = path.join(outputPath,'./cn');
let conowPath = path.join(cnPath,'./conow');
let modulePath = path.join(conowPath,`./${entity.module}`);
if(!fs.existsSync(cnPath)){
	fs.mkdirSync(cnPath);
}
if(!fs.existsSync(conowPath)){
	fs.mkdirSync(conowPath);
}
if(!fs.existsSync(modulePath)){
	fs.mkdirSync(modulePath);
}
exports.conowPath = modulePath;